# -*- coding: utf-8 -*-


from __future__ import absolute_import

import os

__all__ = ["APP_CODE"]


# app 基本信息
def get_env_or_raise(key):
    """Get an environment variable, if it does not exist, raise an exception"""
    value = os.environ.get(key)
    if not value:
        raise RuntimeError(
            ('Environment variable "{}" not found, you must set this variable to run this application.').format(key)
        )
    return value
#  saas 名称
APP_CODE = "domain_redirect"
